package com.wiki.utils;

import java.util.ArrayList;
import java.util.List;

public class String2List {
    public static List<Long> String2Array(String str){
        String arr[] = str.split(",");
        List<Long> res = new ArrayList<>();
        for (int i = 0; i < arr.length; i++) {
            res.add(Long.parseLong(arr[i]));
        }
        return res;
    }
}
